import tvm
import numpy as np

@tvm.te.hybrid.script
def outer_product(a, b):
    c = output_tensor((100,99), 'float32')
    # c = np.zeros((100,99))
    for i in range(a.shape[0]):
        for j in range(b.shape[0]):
            c[i, j] = a[i] * b[j]
    return c

a = np.random.randn(100)
b = np.random.randn(99)

c = outer_product(a, b)
print(c)



